package com.onesports.intelligent.k12.polarlight.common.constant;

/**
 * Application constants.
 */
public final class Constants {

    // Regex for acceptable logins
    public static final String LOGIN_REGEX = "^[_.@A-Za-z0-9-]*$";

    public static final String SYSTEM_ACCOUNT = "system";
    public static final String DEFAULT_LANGUAGE = "en";
    public static final String ANONYMOUS_USER = "anonymoususer";

    public static final String CELLPHONE_REGEXP = "(^(((13[0-9])|(14[579])|(15([0-3]|[5-9]))|(16[6])|(17[0135678])|(18[0-9])|(19[89]))\\d{8})$|^\\d{3}-\\d{8}$|^\\d{4}-\\d{7,8}$)";
    public static final String TELEPHONE_REGEXP = "(^(?:\\d{3}-)?\\d{8}$|^(?:\\d{4}-)?\\d{7,8}$)";
    public static final String ID_CARD_NO_REGEXP = "(^\\d{8}(0\\d|10|11|12)([0-2]\\d|30|31)\\d{3}$)|(^\\d{6}(18|19|20)\\d{2}(0[1-9]|10|11|12)([0-2]\\d|30|31)\\d{3}(\\d|X|x)$)";
    public static final String PASSPORT_NO_REGEXP = "(^[EeKkGgDdSsPpHh]\\d{8}$)|(^(([Ee][a-fA-F])|([DdSsPp][Ee])|([Kk][Jj])|([Mm][Aa])|(1[45]))\\d{7}$)";
    public static final String DATE_REGEXP = "^\\d{4}(-)(1[0-2]|0?\\d)\\1([0-2]\\d|\\d|30|31)$";

    public static final String LOGIN_USER_KEY = "login:user:";
    public static final String LOGIN_TOKEN_KEY = "login:token:";
    public static final String TOKEN_PREFIX = "Bearer ";
    public static final String TOP_PID_STR = "0";
    public static final Integer SECOND_LEVEL = 2;
    public static final Integer TOP_LEVEL = 1;
//    public static final String RUN_SYS = "run";
//    public static final String  SCHOOL_SYS = "school";
//    public static final String EDUCATION_SYS = "education";


    public static final String COMMON_ONE = "1";
    public static final String COMMON_ZERO = "0";


    public static final String MINUTE_SECONDS = "3";
    public static final Integer SECONDS = 60;
    public static final Integer FIRST =1;

    public static final String CLASS_ADD_STUDENT_COUNT_TYPE = "add";
    public static final String CLASS_SUB_STUDENT_COUNT_TYPE = "sub";


    /**
     *
     * 1-未提交；2-待审核；3-审核通过；4-审核不通过
     */
    public static final String UN_AUDIT="0";
    /**
     *
     * 1-未提交；2-待审核；3-审核通过；4-审核不通过
     */
    public static final String UN_COMMIT="1";

    /**
     *
     * 1-未提交；2-待审核；3-审核通过；4-审核不通过
     */
    public static final String WAIT_AUDIT="2";

    /**
     *
     * 1-未提交；2-待审核；3-审核通过；4-审核不通过
     */
    public static final String AUDIT_SUCCESS="3";

    /**
     *
     * 1-未提交；2-待审核；3-审核通过；4-审核不通过
     */
    public static final String AUDIT_FAILED="4";

    /**
     * 未过期
     */
    public static final String NOT_EXPIRED="1";

    /**
     * 过期
     */
    public static final String EXPIRED ="2";

    /**
     * 不可用
     */
    public static final String PUT_GREY ="5";

    /**
     *  可用
     */
    public static final String NOT_PUT_GREY ="-1";


    private Constants() {
    }
}
